package com.ruoyi.system.domain.stores;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author GE-LV5
 * @create 2023/2/20 15:59
 * 贝序设备维护列表
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("maintenance_list")
public class MaintenanceList implements Serializable {

    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;

    @ApiModelProperty(value = "设备名称")
    @Excel(name = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "设备厂家")
    @Excel(name = "设备厂家")
    private String equipmentManufacturer;

    @ApiModelProperty(value = "购买日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "购买日期")
    private Date buyDate;

    @ApiModelProperty(value = "PM级别")
    @Excel(name = "PM级别")
    private String pmLevel;


    @ApiModelProperty(value = "显示设备")
    @Excel(name = "显示设备")
    private String deviceDisplay;

    @ApiModelProperty(value = "已维护日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "已维护日期")
    private Date maintainDate;

    @ApiModelProperty(value = "维护周期/天")
    @Excel(name = "维护周期/天")
    private String maintenanceIntervals;

    @ApiModelProperty(value = "计划维护日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计划维护日期")
    private Date plannedMaintenanceDate;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;
    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "绑定设备台账的id")
    @Excel(name = "设备台账的id")
    private Long equipmentLedgerId;
}
